# 
# Created with PyCharm.
# Description :
# User: jiume
# Date: 2024-09-10
# Time: 12:40
#
import random

lst = [i for i in range(1,301)]
third = 30
while third > 0:
    n = random.randint(0,299)
    if lst[n] > 0: # 此人没有被抽中过
        print(lst[n],'中了三等奖',end=' ')
        lst[n] = -1
        third -= 1
print()
secend = 6
while secend > 0:
    n = random.randint(0,299)
    if lst[n] > 0: # 此人没有被抽中过
        print(lst[n], '中了二等奖',end=' ')
        lst[n] = -1
        secend -= 1
print()
first = 3
while first > 0:
    n = random.randint(0,299)
    if lst[n] > 0: # 此人没有被抽中过
        print(lst[n], '中了一等奖')
        lst[n] = -1
        first -= 1
print()